package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 用药执行事件表
 * </p>
 *
 * @author zqb
 * @date 2024-07-26 10:31:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_exe_yao_event")
public class BExeYaoEvent extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 用药分组id
     */
    @TableField(value = "group_id", condition = LIKE)
    @Schema(description = "用药分组id")
    private String groupId;
    /**
     * 
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "")
    private String patientIdent;
    /**
     * 
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "")
    private String hospitalNumber;
    /**
     * 执行用药状态类型
     */
    @TableField(value = "event_type", condition = LIKE)
    @Schema(description = "执行用药状态类型")
    private String eventType;
    /**
     * 执行发生时间
     */
    @TableField(value = "event_time", condition = EQUAL)
    @Schema(description = "执行发生时间")
    private LocalDateTime eventTime;
    /**
     * 执行结束时间
     */
    @TableField(value = "event_over_time", condition = EQUAL)
    @Schema(description = "执行结束时间")
    private LocalDateTime eventOverTime;
    /**
     * 速度
     */
    @TableField(value = "speed", condition = EQUAL)
    @Schema(description = "速度")
    private Integer speed;
    /**
     * 当前速度
     */
    @TableField(value = "current_speed", condition = EQUAL)
    @Schema(description = "当前速度")
    private Integer currentSpeed;



}
